package com.zzl.springboot.mapper;

import com.zzl.springboot.entity.User;
import com.zzl.springboot.entity.UserExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {
    long countByExample(UserExample example);

    int deleteByExample(UserExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    List<User> selectByExample(UserExample example);

    List<User> selectAll();

    User selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") User record, @Param("example") UserExample example);

    int updateByExample(@Param("record") User record, @Param("example") UserExample example);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    Integer getVol1();

    Integer getVol2();

    Integer getVol3();

    Integer getVolNum();

    List<User> selectByRoleId(int roleId);

    List<User> selectBySearch(@Param("id") int roleId,@Param("info") String searchInfo);

    User getUserById(Integer id);

    Integer updateUser(User user);

    Integer delByChecked(@Param("ids") String[] ids);

    Integer addUser(User user);

    User selectByName(String username);
}